using UnityEngine;

// 创建一个可序列化的剧情道具类
[CreateAssetMenu(fileName = "New StoryItem", menuName = "Inventory/StoryItem")]
public class StoryItem : Item
{
    // 标记是否解锁新功能
    public bool unlockNewFeature;
    
    // 标记是否解锁新梦境层级
    public bool unlockNewDreamLevel;

    // 应用剧情道具的效果
    public void ApplyEffect(GameManager gameManager)
    {
        if (unlockNewFeature)
        {
            gameManager.UnlockFeature();
        }
        
        if (unlockNewDreamLevel)
        {
            gameManager.UnlockNewDreamLevel();
        }
    }
}